package com.darkness.rpc.registercenter.common;

/**
 * @author darkness
 * @time 2022/3/9 9:28
 * @description
 */
public class RegisteredServiceInfo {

    private String hostName;
    private Integer port;

    public RegisteredServiceInfo(String hostName, Integer port) {
        this.hostName = hostName;
        this.port = port;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "RegisteredServiceInfo{" +
                "hostName='" + hostName + '\'' +
                ", port='" + port + '\'' +
                '}';
    }
}
